<template>
  <div class="outer">
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Link></Link>
    <Floor
      v-for="floor in floorList"
      :key="floor.id"
      :floor="floor"
      :cname="'floor-swiper' + floor.id"
    ></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
// import TypeNav from "@/components/TypeNav";
import ListContainer from "./ListContainer";
import Recommend from "./Recommend";
import Rank from "./Rank";
import Link from "./Link";
import Floor from "./Floor";
import Brand from "./Brand";
import { mapState } from "vuex";

export default {
  name: "Home",
  components: { ListContainer, Recommend, Rank, Link, Floor, Brand },
  computed: {
    ...mapState("home", ["floorList"]),
  },
  mounted() {
    this.$store.dispatch("home/getFloorListData");
  },
};
</script>

<style></style>
